#!/bin/bash
sed -i "s|^${1}|#&|" /etc/fstab
UUID=$(blkid $1 | awk '{split($2,arr,"\"");print arr[2]}') ; echo "UUID=$UUID $2 xfs defaults,nofail 0 0" >> /etc/fstab